<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			uni.getStorage({
				key: "token",
				success: function(res) {
					console.log(res.data);
					if (res.data == null || res.data == "") {
						uni.reLaunch({
							url: "/pages/login/login"
						})
					}
				},
				fail: function(res) {
					uni.reLaunch({
						url: "/pages/login/login"
					})
				}
			});
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
